﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//using Microsoft.VisualStudio.TestTools.UnitTesting;

//namespace Pibby.Core.Ioc.Tests
//{
//    [TestClass]
//    public class SimpleTypeResolverTests
//    {
//        public class SimpleClass
//        {
//            public string Value { get; set; }
//        }

//        public class SimpleDerivedClass : SimpleClass
//        {
//        }

//        [TestMethod]
//        [ExpectedException(typeof(TypeNotRegisteredException))]
//        public void SimpleTypeResolver_CreateObjectOfType_UnregisteredType_ThrowsException()
//        {
//            var resolver = new SimpleTypeResolver();

//            resolver.CreateObjectOfType<string>();
//        }

//        [TestMethod]
//        public void SimpleTypeResolver_CreateObjectOfType_RegisteredType_CreatesObject()
//        {
//            var resolver = new SimpleTypeResolver();

//            resolver.RegisterType<SimpleClass, SimpleDerivedClass>();

//            Assert.IsNotNull(resolver.CreateObjectOfType<SimpleClass>());
//        }

//    }
//}
